/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vn.edu.thptduongbachmai.DbUtil;

/**
 *
 * @author Son
 */
public class SimpleExpression {

    private String _propertyName;
    private Object _value;
    private String _op;
    public boolean isLikeOp()
    {
        return _op.equals("like");
    }
    public Object getValue()
    {
        return _value;
    }
    protected SimpleExpression(String propertyName, Object value, String op) {

        _propertyName = propertyName;
        _value = value;
        _op = op;
    }

    @Override
    public String toString() {
        return _propertyName + " " + _op + " ?";
    }
}
